﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DevExpress.Xpo;

namespace WROA.Models.Entitys
{
    public class Car : XPObject
    {
        private Users user;
        public Users User { get; set; }

        
        private string car_name;
        [DbType("nvarchar(50)")]
        public string Car_name { get; set; }

        private string car_number;
        [DbType("nvarchar(50)")]
        public string Car_number
        {
            get { return car_number; }
            set { car_number = value; }
        }
        
        private string car_type;
        [DbType("nvarchar(50)")]
        public string Car_type { get; set; }

        
        private int car_seatcount;
        [DbType("int")]
        public int Car_seatcount { get; set; }

        private string car_state;
        [DbType("nvarchar(50)")]
        public string Car_state
        {
            get { return car_state; }
            set { car_state = value; }
        }


        [Association("ApplyCarDataCar", typeof(ApplyCarData))]
        public XPCollection applycardatas
        {
            get
            {
                return GetCollection("applycardatas");
            }
        }

    }
}